package tool

import (
	"golang.org/x/image/math/f64"
	"math"
)

func DirFromAngle(angleDeg float64) f64.Vec2 {
	rad := angleDeg * math.Pi / 180
	return f64.Vec2{math.Cos(rad), math.Sin(rad)}
}
